home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
util
/
boot
/
Bekuna.lha
/
bekuna1.5
/
frage
< prev
next >
Wrap
Text File
|
2002-03-03
|
751b
|
34 lines
/* Funktion-FRAGE (Frage JA/NEIN) */
/* von Kuno Naumann (27.01.2002) */
/* 1/0 = frage(Text[,Hintergrund]) */
if arg()<1 then return 0
if arg(2,'E') then hg=arg(2)
else hg=""
call open(fr,"awnpipe:frag/xc")
call top(' "Frage" cg dg db so si sg a cs m 'hg)
fo=top('textattr gt "times.font" defn 15')
call top('layout font='fo' v si so')
call top('button gt "'arg(1)'" ro')
call top('space')
call top('layout b 0 font='fo' si')
jg=top('button gt "_Ja" c')
call top('space')
ng=top('button gt "_Nein" c')
call top('le')
call top('le')
call top('open')
call top('continue')
in=readln(fr)
parse var in in1 in2 .
y=0
if in1='gadget' & in2=jg then y=1
call close(fr)
return(y)
top:
parse arg out
call writeln(fr,arg(1))
res=word(readln(fr),2)
return(res)